
<div class="footer">
    <div class="container">
        <div class="row">
            <div class="col-md-4 mb-4">
                <p class="mb-3">
                    <img src="/images/footer-logo.png">
                </p>
               <?php echo info(46);?>
            </div>
            <?php
            $conn=new Mysql();
            $sql="select id,title from newscata_shop where CatalogParentId=2 order by SortId asc";
            $row=$conn->getAll($sql);
            foreach($row as $k=>$rs1){
                ?>
                <div class="col-auto col-sm mb-4">
                    <h6 class="footer-title"><?php echo $rs1["title"];?></h6>
                    <div class="text-block">
                        <?php
                        $conn2=new Mysql();
                        $sql2="select id,title from news_shop where type=".$rs1["id"]." order by adate desc";
                        $row2=$conn2->getAll($sql2);
                        foreach($row2 as $k2=>$rs2) {
                        ?>
                            <p><a href="view.php?id=<?php echo $rs2["id"]?>"><?php echo $rs2["title"]?></a></p>
                            <?php
                        }
                        ?>

                    </div>
                </div>
                <?php
            }
            ?>
        </div>
        <div class="hr-line"></div>
        <div class="copyright">
            <?php echo info(59);?>
        </div>
    </div>
</div>
